package com.dashan.componentdemo;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import com.alibaba.android.arouter.launcher.ARouter;
import com.dashan.module.libbase.model.User;
import com.dashan.module.librouter.Router;

/**
 * @description: 启动页（App入口）
 * @copyRight: Copyright (c) 2021 厦门立林科技有限公司
 * @author: yanxun
 * @createTime: 2021/11/1
 */
public class StartActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_start);

        //Router.getInstance().startActivity(this, "/login/LoginActivity");
        ARouter.getInstance().build("/login/LoginActivity")
                .withLong("key1",666L)
                .withString("key2","888")
                .withSerializable("data",new User("dashan"))
                .navigation();
    }
}